package net.jarang.study.spring;

import net.jarang.study.spring.board.VisitBO;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class InvalidSpringCode {
	private static ApplicationContext context;
	
	public static void main(String[] args) {
		try {
			context = new ClassPathXmlApplicationContext(new String[] {"applicationContext.xml"});
//			VisitBO visitBO1 = (VisitBO)context.getBean("visitBO");
//			int myVisitCount1 = visitBO1.plusMyVisitCount("user1");
//			System.out.println("myVisitCount1 : " + myVisitCount1);
//			
//			VisitBO visitBO2 = (VisitBO)context.getBean("visitBO");
//			int myVisitCount2 = visitBO2.plusMyVisitCount("user2");
//			System.out.println("myVisitCount2 : " + myVisitCount2);
//			
//			VisitBO visitBO3 = (VisitBO)context.getBean("visitBO");
//			int myVisitCount3 = visitBO3.plusMyVisitCount("user3");
//			System.out.println("myVisitCount3 : " + myVisitCount3);

		} catch (Throwable t) {
			t.printStackTrace();
		}
	}
	
	public void plusCount() {
		
	}
}
